package de.tum.se.sudoku.gui;

import java.awt.GridLayout;

import javax.swing.JPanel;

import de.tum.se.sudoku.impl.Grid;

public class SudokuGrid extends JPanel {
	private static final long serialVersionUID = 1L;

	public SudokuGrid(Grid grid) {
		super();

		setLayout(new GridLayout(3, 3));
		for (int i = 0; i < 9; ++i)
			add(new SudokuBox(this, i, grid));

		setVisible(true);
	}
}
